
import 'package:notification_listen_service_plugin/notification_listen_body.dart';

import 'notification_listen_service_plugin_platform_interface.dart';

class NotificationListenServicePlugin {

  Future<bool> requestPermission() async {
    return NotificationListenServicePluginPlatform.instance.requestPermission();
  }

  Future<bool> isPermissionGranted() async {
    return NotificationListenServicePluginPlatform.instance.isPermissionGranted();
  }

  Future<void> sendNotification(String title, String content) async {
    return NotificationListenServicePluginPlatform.instance.sendNotification(title, content);
  }

  Future<void> listenNotification(Function(NotificationListenBody) callback) async {
    return NotificationListenServicePluginPlatform.instance.listenNotification(callback);
  }
}
